/* 盘点单
 */

import { postRequest, getRequest, getDownload } from '@/lib/axios'

export const checkStockApi = {
  // 盘点单
  queryList: (param) => {
    return getRequest('/check_stock/list', param)
  },
  // 盘点单新增
  create: (param) => {
    return postRequest('/check_stock/add', param)
  },
  // 修改数量
  modifyNum: (param) => {
    return postRequest('/check_stock/modify', param)
  },
  // 取消
  cancel: (param) => {
    return postRequest('/check_stock/mark-checking', param)
  },
  // 删除
  delete: (param) => {
    return getRequest('/check_stock/del', param)
  },
  // 审核
  check: (param) => {
    return postRequest('/check_stock/check', param)
  },
  // 详情
  detail: (param) => {
    return getRequest('/check_stock/info', param)
  },
  // 导出
  exportExcel: (param) => {
    return getDownload('/check_stock/export', param)
  },
  // 导出
  exportXlsx: (param) => {
    return getDownload('/check_stock/exportXlsx', param)
  }
}
